﻿Imports DAO
Imports DTO
Imports System.Linq

Public Class HocSinhBUS

    Public Sub addStudent_BUS(ByRef hs As HocSinhDTO)
        Dim hsdao As HocSinhDAO = New HocSinhDAO()
        hsdao.addStudent_DAO(hs)
    End Sub

    Public Function getStudent_BUS(ByVal st As Integer) As DataTable
        Dim hsDao As HocSinhDAO = New HocSinhDAO()
        Return hsDao.getStudent_DAO(st)
    End Function

    Public Sub deleteStudent_BUS(ByVal mahs As Integer)
        Dim hsDao As HocSinhDAO = New HocSinhDAO()
        hsDao.deleteStudent_DAO(mahs)
    End Sub

    Public Sub UpdateStudent_BUS(ByVal mahs As Integer, ByVal stname As String, ByVal address As String, ByVal email As String, ByVal borndate As Date, ByVal sex As Integer)
        Dim hsDao As HocSinhDAO = New HocSinhDAO()
        hsDao.UpdateStudent_DAO(mahs, stname, address, email, borndate, sex)
    End Sub
End Class
